﻿using System;
using System.Collections.Generic;

namespace CDDY_VehicleRepo
{
     ///<summary>
     ///实体类FdjRepository
     ///</summary>
     public class FdjRepository
     {
         private int __ID= 0;
         private string __fdjbs="" ;
         private string __fdjsb="" ;
         private string __fdjsccdz="" ;
         private string __rlzl="" ;
         private string __edzs="" ;
         private string __fdjpl="" ;
         private string __edgl="" ;
         private string __fdjqgs="" ;
         private string __chzhqk="" ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public FdjRepository()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("fdjbs",false);
             this.__Changed.Add("fdjsb",false);
             this.__Changed.Add("fdjsccdz",false);
             this.__Changed.Add("rlzl",false);
             this.__Changed.Add("edzs",false);
             this.__Changed.Add("fdjpl",false);
             this.__Changed.Add("edgl",false);
             this.__Changed.Add("fdjqgs",false);
             this.__Changed.Add("chzhqk",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID = 0;
             this.__fdjbs = "" ;
             this.__fdjsb = "" ;
             this.__fdjsccdz = "" ;
             this.__rlzl = "" ;
             this.__edzs = "" ;
             this.__fdjpl = "" ;
             this.__edgl = "" ;
             this.__fdjqgs = "" ;
             this.__chzhqk = "" ;
             this.__Changed["ID"] = false;
             this.__Changed["fdjbs"] = false;
             this.__Changed["fdjsb"] = false;
             this.__Changed["fdjsccdz"] = false;
             this.__Changed["rlzl"] = false;
             this.__Changed["edzs"] = false;
             this.__Changed["fdjpl"] = false;
             this.__Changed["edgl"] = false;
             this.__Changed["fdjqgs"] = false;
             this.__Changed["chzhqk"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int _ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[发动机标识]的数据
         /// </summary>
         public string _fdjbs
         {
              set{ __fdjbs = value.Replace("'","’"); __Changed["fdjbs"] = true;}
              get{return __fdjbs;}
         }
         /// <summary>
         ///设置或获取类中的[发动机商标]的数据
         /// </summary>
         public string _fdjsb
         {
              set{ __fdjsb = value.Replace("'","’"); __Changed["fdjsb"] = true;}
              get{return __fdjsb;}
         }
         /// <summary>
         ///设置或获取类中的[发动机生产厂地址]的数据
         /// </summary>
         public string _fdjsccdz
         {
              set{ __fdjsccdz = value.Replace("'","’"); __Changed["fdjsccdz"] = true;}
              get{return __fdjsccdz;}
         }
         /// <summary>
         ///设置或获取类中的[燃料种类]的数据
         /// </summary>
         public string _rlzl
         {
              set{ __rlzl = value.Replace("'","’"); __Changed["rlzl"] = true;}
              get{return __rlzl;}
         }
         /// <summary>
         ///设置或获取类中的[额定转速]的数据
         /// </summary>
         public string _edzs
         {
              set{ __edzs = value.Replace("'","’"); __Changed["edzs"] = true;}
              get{return __edzs;}
         }
         /// <summary>
         ///设置或获取类中的[发动机排量]的数据
         /// </summary>
         public string _fdjpl
         {
              set{ __fdjpl = value.Replace("'","’"); __Changed["fdjpl"] = true;}
              get{return __fdjpl;}
         }
         /// <summary>
         ///设置或获取类中的[额定功率]的数据
         /// </summary>
         public string _edgl
         {
              set{ __edgl = value.Replace("'","’"); __Changed["edgl"] = true;}
              get{return __edgl;}
         }
         /// <summary>
         ///设置或获取类中的[发动机气缸数]的数据
         /// </summary>
         public string _fdjqgs
         {
              set{ __fdjqgs = value.Replace("'","’"); __Changed["fdjqgs"] = true;}
              get{return __fdjqgs;}
         }
         /// <summary>
         ///设置或获取类中的[催化转换情况]的数据
         /// </summary>
         public string _chzhqk
         {
              set{ __chzhqk = value.Replace("'","’"); __Changed["chzhqk"] = true;}
              get{return __chzhqk;}
         }
    }
}
